<template>
	<view>
		<view v-if="info.banner"><cover-image style="width: 100%;height: auto;" :src="info.banner"></cover-image></view>
		<view class="content p15">
			<view v-html="info.content"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:{}
			}
		},
		onLoad(options){
			this.onGetInfo()
		},
		methods: {
			onGetInfo(){
				let _this = this
				this.$request_api('applet_api/activity_info/8','GET').then(res => {
					res.data.content = res.data.content.replace(/\<img/gi, '<img style="width:100%;height:auto"');
					_this.info = res.data
				}).catch(err => {
					console.log(err)
				})
			},
		}
	}
</script>

<style>

</style>
